#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
static int a[100010];
int* printNumbers(int n, int* returnSize) {
    int k = 1;
    for (int i = 0; i < n; i++)
        k *= 10;
    int i;
    for (i = 1; i < k; i++)
        a[i - 1] = i;
    *returnSize = --i;
    return a;
}
int main() {
    int n = 0;
    scanf("%d", &n);
    int returnSize;
    int* numbers = printNumbers(n, &returnSize);
    for (int i = 0; i < returnSize; i++) {
        printf("%d ", numbers[i]);
    }
    return 0;
}